{extend name="layout" /}


{block name="main"}

<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>添加语种</h5>
    </div>
    <div class="ibox-content">
        <form method="post" class="form-horizontal" onsubmit="return toSubmit()">
            <div class="form-group">
                <label class="col-sm-2 control-label">语种名称</label>
                <div class="col-sm-6">

                    <div class="row">
                        <div class="col-sm-6">
                            <div id="container">
                                <input type="text" name="file" id="container-input" value="">
                                <div id="file-container"></div><br/>
                                <a href="javascript:void(0);" id="select-container" class='btn btn-primary'>选择文件</a>
                                <a href="javascript:void(0);" id="post-container" class='myPostFiles btn btn-primary'>开始上传</a>
                            </div>
                        </div>

                        <div class="col-sm-6">
                            <div id="container1">
                                <input type="text" name="file1" id="container1-input" value="">
                                <div id="file-container1"></div><br/>
                                <a href="javascript:void(0);" id="select-container1" class='btn btn-primary'>选择文件</a>
                                <a href="javascript:void(0);" id="post-container1" class='btn btn-primary'>开始上传</a>
                            </div>
                        </div>
                    </div>

                </div>
            </div>


            <div class="hr-line-dashed"></div>
            <div class="form-group">
                <div class="col-sm-4 col-sm-offset-2">
                    <button class="btn btn-primary" type="submit" id="mySubmitBtn">提交</button>
                    <button class="btn btn-white" type="button"><a href="{:url('index')}">取消</a></button>
                </div>
            </div>
        </form>
    </div>
</div>


{/block}

{block name="jsFile"}
{load href="/static/js/plugins/plupload/js/plupload.full.min.js" /}
<script>
    window.PHP = {
        containerIds: ['container', 'container1'],
        uploadUrl: "{:url('upload/file', ['type' => 1, 'dir' => 'lang_icon'])}",
        maxSize: '100gb',
        fileNum: 1
    }
</script>
{load href="/static/js/plugins/plupload/upload.js" /}
{/block}



